﻿
#r "System.Windows.Forms.DataVisualization.dll"

open System
open System.Drawing // for Font
open System.Windows.Forms
open System.Windows.Forms.DataVisualization.Charting

let makeChart()=
    let chart = new Chart(Dock = DockStyle.Fill)
    let area = new ChartArea("default")
    chart.ChartAreas.Add area

    let mainForm = new Form(Text = "Data Binding Demo",Visible = true,Width = 700, Height = 500)
    mainForm.Controls.Add chart

    chart

let addSeries (chart : Chart) charttype =
    let series = new Series(ChartType = charttype)
    chart.Series.Add series
    series
    